package xian.woniu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import xian.woniu.util.ResultVO;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import xian.woniu.entity.Orders;
import xian.woniu.util.ResultVO;

import java.util.List;
/**
 * @Author ：hzz
 * @Date ：Created in 2022/7/6 16:22
 * @Description：
 * @Modified By：
 * @Version: $
 */
@FeignClient("sun-admin")
public interface IOrdersService {
    @GetMapping("admin/findByDid")
    ResultVO findByDid(@RequestParam("did") Integer did);

    @GetMapping("admin/getPatientByDid/{did}")
    List<Orders> getPatientByDid(@PathVariable("did") Integer did);

}

